# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=libmatemixer
pkgver=1.28.0
pkgrel=0
pkgdesc="A mixer library for MATE desktop"
url="https://git.mate-desktop.org/libmatemixer/"
arch="all"
license="GPL-2.0-or-later"
makedepends="intltool glib-dev alsa-lib-dev pulseaudio-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/libmatemixer-$pkgver.tar.xz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr \
		--enable-alsa \
		--enable-pulseaudio
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
9bfe33a851eae10564ccad5d578a76c565cba1d8c720b89eb1105c8d507436b31d6d0c9c1112dbf6b8cc7def97f14ff19feb6f55d6cf8de2d0421b5cf1dfc485  libmatemixer-1.28.0.tar.xz
"
